$OpenBSD: patch-Makefile_in,v 1.1.1.1 2008/06/13 17:12:42 jasper Exp $
--- Makefile.in.orig	Wed Sep 12 14:22:48 2007
+++ Makefile.in	Fri May 23 11:43:37 2008
@@ -37,7 +37,7 @@ LIBVERSION=@LIBVERSION@
 
 CXX         = @CXX@
 CXXFLAGS    = @CXXFLAGS@ @X_CFLAGS@ @DEFS@ \
-              -Wall -Wpointer-arith
+              -Wall -Wpointer-arith -fPIC
 CXXINCLUDES =
 CXXDEFINES  =
 
@@ -51,7 +51,7 @@ CCFLAGS     = @CFLAGS@ @X_CFLAGS@ @DEFS@ \
 CCINCLUDES  =
 CCDEFINES   =
 
-LDFLAGS     = @LDFLAGS@
+LDFLAGS     = @LDFLAGS@ -fPIC
 LIBS        = @LIBS@
 
 #
@@ -88,7 +88,7 @@ LIBRARY = Xcomp
 LIBNAME    = lib$(LIBRARY)
 LIBFULL    = lib$(LIBRARY).so.$(VERSION)
 LIBLOAD    = lib$(LIBRARY).so.$(LIBVERSION)
-LIBSHARED  = lib$(LIBRARY).so
+LIBSHARED  = lib$(LIBRARY).so.$(LIBVERSION)
 LIBARCHIVE = lib$(LIBRARY).a
 
 LIBCYGSHARED  = cyg$(LIBRARY).dll
@@ -225,16 +225,11 @@ MOBJ   = $(MSRC:.c=.o)
 COBJ   = $(CSRC:.c=.o)
 CXXOBJ = $(CXXSRC:.cpp=.o)
 
-$(LIBFULL):	 $(CXXOBJ) $(COBJ)
+$(LIBSHARED):	 $(CXXOBJ) $(COBJ)
 		 $(CXX) -o $@ $(LDFLAGS) $(CXXOBJ) $(COBJ) $(LIBS)
 
-$(LIBLOAD):	 $(LIBFULL)
-		 rm -f $(LIBLOAD)
-		 ln -s $(LIBFULL) $(LIBLOAD)
-
-$(LIBSHARED):	 $(LIBFULL)
-		 rm -f $(LIBSHARED)
-		 ln -s $(LIBFULL) $(LIBSHARED)
+$(LIBLOAD):
+$(LIBSHARED):
 
 $(LIBARCHIVE):	 $(CXXOBJ) $(COBJ)
 		 rm -f  $(LIBARCHIVE)
